package com.example.mylearn.proxy.staticProxy;

public class SmsProxy implements SmsService{


    private final SmsService smsService;

    public SmsProxy(SmsService smsService) {
        this.smsService = smsService;
    }

    @Override
    public void send() {
        System.out.println("前");
        smsService.send();
        System.out.println("后");
    }
}
